package org.example.em;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

public enum ProjectDelectStatus {

    /*
     * 枚举的类型
     * */
    NOT_PROMOTION(0, "未推广"),
    PROMOTION(1, "已推广"),
    PROMOTIONING(2,"推广中"),
    PROMOTIONFAILED(-1,"推广失败");

    @EnumValue
    @JsonValue
    private final Integer code;//状态码

    private final String desc;//描述

    //构造方法
    ProjectDelectStatus(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }
    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}